package de.thw.web.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import de.thw.web.dao.DomainDAO;
import de.thw.web.model.Domain;
import de.thw.web.service.DomainService;

@Service
public class DomainServiceImpl extends AbstractServiceImpl<Domain> implements
		DomainService {

	@Autowired
	private DomainDAO daoDomain;

	// /////////////////////////////////////////////////////////////////////////////

	@Transactional
	public void save(Domain object) {
		super.save(object, this.daoDomain);
	};

	@Transactional
	public Domain load(String uid) {
		return super.load(uid, this.daoDomain);
	};

	@Transactional
	public List<Domain> getAll() {
		return super.getAll(this.daoDomain);
	};

};